<!DOCTYPE html >
<html>
        <head>
          <title>MongoConnection - Casbah Driver - com.mongodb.casbah.MongoConnection</title>
          <meta name="description" content="MongoConnection - Casbah Driver - com.mongodb.casbah.MongoConnection" />
          <meta name="keywords" content="MongoConnection Casbah Driver com.mongodb.casbah.MongoConnection" />
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link href="../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
      <link href="../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
      <script type="text/javascript" src="../../../lib/jquery.js" id="jquery-js"></script>
      <script type="text/javascript" src="../../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../../lib/template.js"></script>
      <script type="text/javascript" src="../../../lib/tools.tooltip.js"></script>
      <script type="text/javascript" src="../../../lib/modernizr.custom.js"></script><script type="text/javascript" src="../../../lib/diagrams.js" id="diagrams-js"></script>
      <script type="text/javascript">
         if(top === self) {
            var url = '../../../index.html';
            var hash = 'com.mongodb.casbah.MongoConnection';
            var anchor = window.location.hash;
            var anchor_opt = '';
            if (anchor.length >= 1)
              anchor_opt = '@' + anchor.substring(1);
            window.location.href = url + '#' + hash + anchor_opt;
         }
   	  </script>
    
        </head>
        <body class="type">
      <div id="definition">
        <a href="MongoConnection$.html" title="See companion object"><img alt="Class/Object" src="../../../lib/class_to_object_big.png" /></a>
        <p id="owner"><a href="../../package.html" class="extype" name="com">com</a>.<a href="../package.html" class="extype" name="com.mongodb">mongodb</a>.<a href="package.html" class="extype" name="com.mongodb.casbah">casbah</a></p>
        <h1><a href="MongoConnection$.html" title="See companion object">MongoConnection</a></h1><h3><span class="morelinks"><div>
            Related Docs:
            <a href="MongoConnection$.html" title="See companion object">object MongoConnection</a>
            | <a href="package.html" class="extype" name="com.mongodb.casbah">package casbah</a>
          </div></span></h3><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      </div>

      <h4 id="signature" class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">class</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.7) Please use MongoClient">MongoConnection</span><span class="result"> extends <span class="extype" name="scala.AnyRef">AnyRef</span></span>
      </span>
      </h4>
      
          <div id="comment" class="fullcommenttop"><div class="comment cmt"><p>Wrapper class for the Mongo Connection object.
</p></div><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.7)</i> Please use MongoClient</p></dd></dl><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent"><span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div>
        </div><div class="toggleContainer block diagram-container" id="inheritance-diagram-container">
                <span class="toggle diagram-link">Type Hierarchy</span>
                <a href="http://docs.scala-lang.org/overviews/scaladoc/usage.html#diagrams" target="_blank" class="diagram-help">Learn more about scaladoc diagrams</a>
                <div class="diagram" id="inheritance-diagram"><svg class="class-diagram" id="graph1" viewBox="0.00 0.00 180.00 118.00" height="118pt" width="180pt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><g transform="scale(1 1) rotate(0) translate(4 114)" class="graph" id="graph0"><polygon points="-4,4 -4,-114 176,-114 176,4 -4,4" stroke="none" fill="white"></polygon><g class="cluster" id="clust1"></g><g class="cluster" id="clust2"></g><!-- node0 --><g class="node this class" id="graph1_0"><g id="a_this class|graph1_0"><a xlink:title="com.mongodb.casbah.MongoConnection (this class)" xlink:href="#inheritance-diagram"><polygon points="148,-49 24,-49 24,-24 148,-24 148,-49" stroke="#115f3b" fill="#0a955b"></polygon><image xlink:href="../../../lib/class_diagram.png" y="-43.5" x="34" preserveAspectRatio="xMinYMin meet" height="15px" width="15px"></image><text fill="#ffffff" font-size="10.00" font-family="Arial" y="-33.7495" x="54.5273" text-anchor="start">MongoConnection</text></a></g></g><!-- node1 --><g class="node class" id="graph1_1"><g id="a_class|graph1_1"><a xlink:title="scala.AnyRef"><polygon points="124,-110 48,-110 48,-85 124,-85 124,-110" stroke="#115f3b" fill="#0a955b"></polygon><image xlink:href="../../../lib/class_diagram.png" y="-104.5" x="58" preserveAspectRatio="xMinYMin meet" height="15px" width="15px"></image><text fill="#ffffff" font-size="10.00" font-family="Arial" y="-94.7495" x="78.7144" text-anchor="start">AnyRef</text></a></g></g><!-- node1&#45;&gt;node0 --><g class="edge inheritance" id="graph1_1_0"><g id="a_inheritance|graph1_1_0"><a xlink:title="MongoConnection is a subtype of AnyRef"><path d="M86,-79.6874C86,-69.9173 86,-57.8534 86,-49.1323" stroke="#d4d4d4" fill="none"></path><polygon points="84.2501,-79.8435 86,-84.8435 87.7501,-79.8435 84.2501,-79.8435" stroke="#d4d4d4" fill="none"></polygon></a></g></g></g></svg></div>
              </div></div>
        

      <div id="mbrsel">
        <div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div>
        <div id="order">
              <span class="filtertype">Ordering</span>
              <ol>
                
                <li class="alpha in"><span>Alphabetic</span></li>
                <li class="inherit out"><span>By inheritance</span></li>
              </ol>
            </div>
        <div id="ancestors">
                <span class="filtertype">Inherited<br />
                </span>
                <ol id="linearization">
                  <li class="in" name="com.mongodb.casbah.MongoConnection"><span>MongoConnection</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
                </ol>
              </div><div id="ancestors">
            <span class="filtertype"></span>
            <ol>
              <li class="hideall out"><span>Hide All</span></li>
              <li class="showall in"><span>Show all</span></li>
            </ol>
          </div>
        <div id="visbl">
            <span class="filtertype">Visibility</span>
            <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
          </div>
      </div>

      <div id="template">
        <div id="allMembers">
        <div id="constructors" class="members">
              <h3>Instance Constructors</h3>
              <ol><li name="com.mongodb.casbah.MongoConnection#&lt;init&gt;" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="&lt;init&gt;(underlying:com.mongodb.Mongo):com.mongodb.casbah.MongoConnection"></a>
      <a id="&lt;init&gt;:MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">new</span>
      </span>
      <span class="symbol">
        <span class="name">MongoConnection</span><span class="params">(<span name="underlying">underlying: <span class="extype" name="com.mongodb.Mongo">Mongo</span></span>)</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@&lt;init&gt;(underlying:com.mongodb.Mongo):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li></ol>
            </div>

        

        

        <div id="values" class="values members">
              <h3>Value Members</h3>
              <ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="!=(x$1:Any):Boolean"></a>
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@!=(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="##():Int"></a>
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@##():Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="==(x$1:Any):Boolean"></a>
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@==(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#addOption" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="addOption(option:Int):Unit"></a>
      <a id="addOption(Int):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">addOption</span><span class="params">(<span name="option">option: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@addOption(option:Int):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mongodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#address" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="address:com.mongodb.casbah.Imports.ServerAddress"></a>
      <a id="address:Imports.ServerAddress"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">address</span><span class="result">: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@address:com.mongodb.casbah.Imports.ServerAddress" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the address of this database.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the address of this database.
</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>(ServerAddress) The address of the DB</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#allAddress" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="allAddress:scala.collection.mutable.Buffer[com.mongodb.casbah.Imports.ServerAddress]"></a>
      <a id="allAddress:Buffer[Imports.ServerAddress]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">allAddress</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@allAddress:scala.collection.mutable.Buffer[com.mongodb.casbah.Imports.ServerAddress]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(dbName:String):com.mongodb.casbah.MongoDB"></a>
      <a id="apply(String):MongoDB"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="dbName">dbName: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MongoDB.html" class="extype" name="com.mongodb.casbah.MongoDB">MongoDB</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@apply(dbName:String):com.mongodb.casbah.MongoDB" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Apply method which proxies getDB, allowing you to call
<code>connInstance("dbName")</code>
</code></p><div class="fullcomment"><div class="comment cmt"><p>Apply method which proxies getDB, allowing you to call
<code>connInstance("dbName")</code>
</p></div><dl class="paramcmts block"><dt class="param">dbName</dt><dd class="cmt"><p>(String) A string for the database name</p></dd><dt>returns</dt><dd class="cmt"><p>MongoDB A wrapped instance of a Mongo 'DB Class.</p></dd></dl></div>
    </li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="asInstanceOf[T0]:T0"></a>
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@asInstanceOf[T0]:T0" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="clone():Object"></a>
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@clone():Object" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.CloneNotSupportedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#close" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="close():Unit"></a>
      <a id="close():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">close</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@close():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Closes all open connections.</p><div class="fullcomment"><div class="comment cmt"><p>Closes all open connections.
NOTE: This connection can't be reused after closing.
</p></div></div>
    </li><li name="com.mongodb.casbah.MongoConnection#connectPoint" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="connectPoint:String"></a>
      <a id="connectPoint:String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">connectPoint</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@connectPoint:String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoConnection#databaseNames" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="databaseNames():scala.collection.mutable.Buffer[String]"></a>
      <a id="databaseNames():Buffer[String]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">databaseNames</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<span class="extype" name="scala.Predef.String">String</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@databaseNames():scala.collection.mutable.Buffer[String]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#dbNames" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="dbNames():scala.collection.mutable.Buffer[String]"></a>
      <a id="dbNames():Buffer[String]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dbNames</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<span class="extype" name="scala.Predef.String">String</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@dbNames():scala.collection.mutable.Buffer[String]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#dropDatabase" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="dropDatabase(dbName:String):Unit"></a>
      <a id="dropDatabase(String):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dropDatabase</span><span class="params">(<span name="dbName">dbName: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@dropDatabase(dbName:String):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Drops the database if it exists.</p><div class="fullcomment"><div class="comment cmt"><p>Drops the database if it exists.
</p></div><dl class="paramcmts block"><dt class="param">dbName</dt><dd class="cmt"><p>(String) the name of the database to drop</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd></dl></div>
    </li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="eq(x$1:AnyRef):Boolean"></a>
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@eq(x$1:AnyRef):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="equals(x$1:Any):Boolean"></a>
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">equals</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@equals(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="finalize():Unit"></a>
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@finalize():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="symbol">classOf[java.lang.Throwable]</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#getAddress" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getAddress:com.mongodb.casbah.Imports.ServerAddress"></a>
      <a id="getAddress:Imports.ServerAddress"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getAddress</span><span class="result">: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getAddress:com.mongodb.casbah.Imports.ServerAddress" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the address of this database.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the address of this database.
</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>(ServerAddress) The address of the DB</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#getAllAddress" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="getAllAddress:scala.collection.mutable.Buffer[com.mongodb.casbah.Imports.ServerAddress]"></a>
      <a id="getAllAddress:Buffer[Imports.ServerAddress]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getAllAddress</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getAllAddress:scala.collection.mutable.Buffer[com.mongodb.casbah.Imports.ServerAddress]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getClass():Class[_]"></a>
      <a id="getClass():Class[_]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getClass():Class[_]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#getConnectPoint" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="getConnectPoint:String"></a>
      <a id="getConnectPoint:String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getConnectPoint</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getConnectPoint:String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoConnection#getDB" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="getDB(dbName:String):com.mongodb.casbah.MongoDB"></a>
      <a id="getDB(String):MongoDB"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getDB</span><span class="params">(<span name="dbName">dbName: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MongoDB.html" class="extype" name="com.mongodb.casbah.MongoDB">MongoDB</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getDB(dbName:String):com.mongodb.casbah.MongoDB" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoConnection#getDatabaseNames" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getDatabaseNames():scala.collection.mutable.Buffer[String]"></a>
      <a id="getDatabaseNames():Buffer[String]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getDatabaseNames</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<span class="extype" name="scala.Predef.String">String</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getDatabaseNames():scala.collection.mutable.Buffer[String]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#getOptions" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getOptions:Int"></a>
      <a id="getOptions:Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getOptions</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getOptions:Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mognodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#getReadPreference" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getReadPreference:com.mongodb.casbah.Imports.ReadPreference"></a>
      <a id="getReadPreference:Imports.ReadPreference"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getReadPreference</span><span class="result">: <a href="Imports$.html#ReadPreference=com.mongodb.ReadPreference" class="extmbr" name="com.mongodb.casbah.Imports.ReadPreference">Imports.ReadPreference</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getReadPreference:com.mongodb.casbah.Imports.ReadPreference" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the read preference for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the read preference for this database. Will be used as default for
reads from any collection in this database. See the
documentation for <span class="extype" name="com.mongodb.ReadPreference">com.mongodb.ReadPreference</span> for more information.
</p></div></div>
    </li><li name="com.mongodb.casbah.MongoConnection#getWriteConcern" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getWriteConcern:com.mongodb.casbah.Imports.WriteConcern"></a>
      <a id="getWriteConcern:Imports.WriteConcern"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getWriteConcern</span><span class="result">: <a href="Imports$.html#WriteConcern=com.mongodb.WriteConcern" class="extmbr" name="com.mongodb.casbah.Imports.WriteConcern">Imports.WriteConcern</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@getWriteConcern:com.mongodb.casbah.Imports.WriteConcern" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">get the write concern for this database,
which is used for writes to any collection in this database.</p><div class="fullcomment"><div class="comment cmt"><p>get the write concern for this database,
which is used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li><li name="scala.AnyRef#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="hashCode():Int"></a>
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@hashCode():Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@isInstanceOf[T0]:Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="ne(x$1:AnyRef):Boolean"></a>
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@ne(x$1:AnyRef):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="notify():Unit"></a>
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@notify():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="notifyAll():Unit"></a>
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@notifyAll():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#options" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="options:Int"></a>
      <a id="options:Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">options</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@options:Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mognodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#readPreference" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="readPreference:com.mongodb.casbah.Imports.ReadPreference"></a>
      <a id="readPreference:Imports.ReadPreference"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">readPreference</span><span class="result">: <a href="Imports$.html#ReadPreference=com.mongodb.ReadPreference" class="extmbr" name="com.mongodb.casbah.Imports.ReadPreference">Imports.ReadPreference</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@readPreference:com.mongodb.casbah.Imports.ReadPreference" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the read preference for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the read preference for this database. Will be used as default for
reads from any collection in this database. See the
documentation for <span class="extype" name="com.mongodb.ReadPreference">com.mongodb.ReadPreference</span> for more information.
</p></div></div>
    </li><li name="com.mongodb.casbah.MongoConnection#readPreference_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="readPreference_=(pref:com.mongodb.casbah.Imports.ReadPreference):Unit"></a>
      <a id="readPreference_=(Imports.ReadPreference):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: readPreference_$eq" class="name">readPreference_=</span><span class="params">(<span name="pref">pref: <a href="Imports$.html#ReadPreference=com.mongodb.ReadPreference" class="extmbr" name="com.mongodb.casbah.Imports.ReadPreference">Imports.ReadPreference</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@readPreference_=(pref:com.mongodb.casbah.Imports.ReadPreference):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Sets the read preference for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Sets the read preference for this database. Will be used as default for
reads from any collection in this database. See the
documentation for <span class="extype" name="com.mongodb.ReadPreference">com.mongodb.ReadPreference</span> for more information.
</p></div><dl class="paramcmts block"><dt class="param">pref</dt><dd class="cmt"><p>Read Preference to use</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#resetOptions" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="resetOptions():Unit"></a>
      <a id="resetOptions():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">resetOptions</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@resetOptions():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mongodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#setReadPreference" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="setReadPreference(pref:com.mongodb.casbah.Imports.ReadPreference):Unit"></a>
      <a id="setReadPreference(Imports.ReadPreference):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setReadPreference</span><span class="params">(<span name="pref">pref: <a href="Imports$.html#ReadPreference=com.mongodb.ReadPreference" class="extmbr" name="com.mongodb.casbah.Imports.ReadPreference">Imports.ReadPreference</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@setReadPreference(pref:com.mongodb.casbah.Imports.ReadPreference):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Sets the read preference for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Sets the read preference for this database. Will be used as default for
reads from any collection in this database. See the
documentation for <span class="extype" name="com.mongodb.ReadPreference">com.mongodb.ReadPreference</span> for more information.
</p></div><dl class="paramcmts block"><dt class="param">pref</dt><dd class="cmt"><p>Read Preference to use</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#setWriteConcern" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="setWriteConcern(concern:com.mongodb.casbah.Imports.WriteConcern):Unit"></a>
      <a id="setWriteConcern(Imports.WriteConcern):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setWriteConcern</span><span class="params">(<span name="concern">concern: <a href="Imports$.html#WriteConcern=com.mongodb.WriteConcern" class="extmbr" name="com.mongodb.casbah.Imports.WriteConcern">Imports.WriteConcern</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@setWriteConcern(concern:com.mongodb.casbah.Imports.WriteConcern):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Set the write concern for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Set the write concern for this database.
Will be used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="paramcmts block"><dt class="param">concern</dt><dd class="cmt"><p>(WriteConcern) The write concern to use</p></dd></dl><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="synchronized[T0](x$1:=&gt;T0):T0"></a>
      <a id="synchronized[T0](⇒T0):T0"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@synchronized[T0](x$1:=&gt;T0):T0" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="toString():String"></a>
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@toString():String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#underlying" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="underlying:com.mongodb.Mongo"></a>
      <a id="underlying:Mongo"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">val</span>
      </span>
      <span class="symbol">
        <span class="name">underlying</span><span class="result">: <span class="extype" name="com.mongodb.Mongo">Mongo</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@underlying:com.mongodb.Mongo" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait():Unit"></a>
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@wait():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait(x$1:Long,x$2:Int):Unit"></a>
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@wait(x$1:Long,x$2:Int):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait(x$1:Long):Unit"></a>
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@wait(x$1:Long):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#writeConcern" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="writeConcern:com.mongodb.casbah.Imports.WriteConcern"></a>
      <a id="writeConcern:Imports.WriteConcern"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">writeConcern</span><span class="result">: <a href="Imports$.html#WriteConcern=com.mongodb.WriteConcern" class="extmbr" name="com.mongodb.casbah.Imports.WriteConcern">Imports.WriteConcern</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@writeConcern:com.mongodb.casbah.Imports.WriteConcern" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">get the write concern for this database,
which is used for writes to any collection in this database.</p><div class="fullcomment"><div class="comment cmt"><p>get the write concern for this database,
which is used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#writeConcern_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="writeConcern_=(concern:com.mongodb.casbah.Imports.WriteConcern):Unit"></a>
      <a id="writeConcern_=(Imports.WriteConcern):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: writeConcern_$eq" class="name">writeConcern_=</span><span class="params">(<span name="concern">concern: <a href="Imports$.html#WriteConcern=com.mongodb.WriteConcern" class="extmbr" name="com.mongodb.casbah.Imports.WriteConcern">Imports.WriteConcern</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@writeConcern_=(concern:com.mongodb.casbah.Imports.WriteConcern):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Set the write concern for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Set the write concern for this database.
Will be used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="paramcmts block"><dt class="param">concern</dt><dd class="cmt"><p>(WriteConcern) The write concern to use</p></dd></dl><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li></ol>
            </div>

        

        <div id="values" class="values members">
              <h3>Deprecated Value Members</h3>
              <ol><li name="com.mongodb.casbah.MongoConnection#slaveOk" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="slaveOk():Unit"></a>
      <a id="slaveOk():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.3.0) Replaced with ReadPreference.SECONDARY">slaveOk</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection@slaveOk():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Sets queries to be OK to run on slave nodes.</p><div class="fullcomment"><div class="comment cmt"><p>Sets queries to be OK to run on slave nodes.
</p></div><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.3.0)</i> Replaced with <code>ReadPreference.SECONDARY</code></p></dd></dl></div>
    </li></ol>
            </div>
        </div>

        <div id="inheritedMembers">
        <div class="parent" name="scala.AnyRef">
              <h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3>
            </div><div class="parent" name="scala.Any">
              <h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
            </div>
        
        </div>

        <div id="groupedMembers">
        <div class="group" name="Ungrouped">
              <h3>Ungrouped</h3>
              
            </div>
        </div>

      </div>

      <div id="tooltip"></div>

      <div id="footer">  </div>


    </body>
      </html>
